/*
package com.ujiuye.demo;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:applicationContext.xml"})
public class MapperTest {

    @Autowired
    UserMapper userMapper;

    @Test
    public void test() {
        */
/*//*
/1、创建SpringIOC容器
        ApplicationContext ioc = new ClassPathXmlApplicationContext("applicationContext.xml");
        //2、从容器中获取mapper
        UserMapper bean = ioc.getBean(UserMapper.class);*//*


        //测试能否拿到对象
        System.out.println(userMapper);
        List<User> userList = userMapper.getUserList();
        System.out.println(userList);
        System.out.println("开始遍历");
        for (User user : userList) {
            System.out.println(user);

        }
    }
}
*/
